

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>用户新增</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <#include "../../include/layui.ftl" />
</head>
<body>

  <div class="layui-fluid">
    <div class="layui-card">
      <div class="layui-card-body" style="padding: 15px;">
        <form class="layui-form layui-form-pane" action="/console/com.fs.common.pojo.User/newAdd" lay-filter="layer-from">
          <input type="hidden" name="comId" value="${SESSION_USER.user.comId!}">
          <div class="layui-form-item">
            <label class="layui-form-label">登录帐号</label>
            <div class="layui-input-block">
              <input type="text" name="account" lay-verify="required" autocomplete="off" placeholder="请输入登录帐号" class="layui-input">
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">昵称</label>
            <div class="layui-input-block">
              <input type="text" name="nickName" lay-verify="required" autocomplete="off" placeholder="请输入昵称" class="layui-input">
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">登录密码</label>
            <div class="layui-input-block">
              <input type="password" name="pwd1" id="pwd1" lay-verify="required" autocomplete="off" placeholder="请输入登录密码" class="layui-input">
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">确认密码</label>
            <div class="layui-input-block">
              <input type="password" name="pwd" lay-verify="required|pwd" autocomplete="off" placeholder="请再次输入密码" class="layui-input">
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">手机号码</label>
            <div class="layui-input-block">
              <input type="text" name="mobile" lay-verify="phone" autocomplete="off" placeholder="请输入手机号码" class="layui-input">
            </div>
          </div>
          <div class="layui-form-item" hidden>
            <div class="layui-input-block">
              <button id="permissionSubmit" class="layui-btn" lay-submit lay-filter="*">
                保存
              </button>
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>


  <script>
  layui.config({
    base: '${path}/plug-in/layuiadmin/' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
  }).use(['index','form','jquery'],function () {
    var form = layui.form,
           $ = layui.$;
    /* 自定义验证规则 */
    form.verify({
      pwd: function(value, item){
        var pwd1= $("#pwd1").val();
        if(value != pwd1) {
          return '两次输入的密码不一致';
        }
      }
    });
  });
  </script>
</body>
</html>
